<template>
  <div class="box">
    <h3><van-icon name="gold-coin" />{{ text }}</h3>
    <div class="box1">
      <div v-for="(v, i) in obj" :key="i">
        <img :src="v.img" alt="" />
        <p v-text="v.text1"></p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      text: "充值专区",
      obj: [
        { img: "./img/life/czzq (1).png", text1: "话费充值" },
        { img: "./img/life/czzq (2).png", text1: "餐饮美食" },
        { img: "./img/life/czzq (3).png", text1: "视频会员" },
        { img: "./img/life/czzq (4).png", text1: "生活出行" },
        { img: "./img/life/czzq (5).png", text1: "娱乐充值" },
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
.box {
  width: 100%;
  background-color: rgb(243, 226, 229);
  > h3 {
    line-height: 0.5rem;
    width: 100%;
    height: 0.5rem;
    margin-top: 0.2rem;
    font-size: 0.22rem;
    text-indent: 0.3em;
  }
  > .box1 {
    display: flex;
    justify-content: space-around;
    text-align: center;
    > div {
      > img {
        width: 0.28rem;
        margin-top: 0.2rem;
      }
      > p {
        font-size: 0.13rem;
        line-height: 0.35rem;
      }
    }
  }
}
</style>